package com.javaweb.service.system.controller;

import com.javaweb.service.system.api.RemoteClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: javaweb
 * @description:
 * @author: Mr.Run
 * @create: 2021-08-05 22:26
 **/

@RestController
@RequestMapping("")
public class TestController {

    @Autowired
    private RemoteClient remoteClient;

    @RequestMapping("/feign")
    public String test() {
        return this.remoteClient.helloNacos();
    }

}
